import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class TestPassword {
    public static void main(String[] args) {
        BCryptPasswordEncoder encoder = new BCryptPasswordEncoder();
        
        // Database password
        String dbPassword = "$2b$12$SxOyOJLLjbTzAMlRM8hyyuz/qfMvbjx051uMWhvEGs6e.X8TR8H46";
        // Try login password
        String rawPassword = "admin123";
        
        System.out.println("Database password: " + dbPassword);
        System.out.println("Try login password: " + rawPassword);
        
        boolean matches = encoder.matches(rawPassword, dbPassword);
        System.out.println("Password match result: " + matches);
        
        // Also test 123456
        String rawPassword2 = "123456";
        boolean matches2 = encoder.matches(rawPassword2, dbPassword);
        System.out.println("Password 123456 match result: " + matches2);
    }
}